﻿using DAO;
using DTO;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUS
{
    public class AcQuyBus
    {
        public DataTable LoadAcQuy()
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.LoadAcQuy();
        }
        public List<LoaiAcQuy> LoadLoaiCQuy_Them1dong()
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.LoadLoaiCQuy_Them1dong();
        }
        public DataTable Load_LoaiAcQuy()
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.Load_LoaiAcQuy();
        }
        public DataTable Loai_AcQuy()
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.Loai_AcQuy();
        }


        public int Them_AcQuy(ThongSoChungDTO ts, ThietBiDienDTO tb)
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.Them_AcQuy(ts, tb);
        }

        public int Sua_AcQuy(ThongSoChungDTO ts, ThietBiDienDTO tb)
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.Sua_AcQuy(ts, tb);
        }

        public int Xoa_AcQuy(int STT)
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.Xoa_AcQuy(STT);
        }

        public int KiemTra_MaAQ(ThongSoChungDTO ts)
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.KiemTra_MaAQ(ts);
        }

        public int KT_TheoTenAcQuy(ThongSoChungDTO ts)
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.KT_TheoTenAcQuy(ts);
        }

        public int Them_LoaiAcQuy(LoaiAcQuy AQ)
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.Them_LoaiAcQuy(AQ);
        }

        //----------------------------Loai----------------------------
        public int Xoa_LoaiAcQuy(LoaiAcQuy lAQ)
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.Xoa_LoaiAcQuy(lAQ);
        }

        public int KiemTra_TenAcQuy(LoaiAcQuy aq)
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.KiemTra_TenAcQuy(aq);
        }

        public int Sua_LoaiAcQuy(LoaiAcQuy aq)
        {
            AcQuyDao _aq = new AcQuyDao();
            return _aq.Sua_LoaiAcQuy(aq);
        }
    }
}
